﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PokerService.Game
{
    class Deck
    {
        private List<Card> deck;
        public Deck()
        {
            deck = new List<Card>();
            foreach (Card.Rank r in Enum.GetValues(typeof (Card.Rank)))
            {
                foreach (Card.Suit s in Enum.GetValues(typeof (Card.Suit)))
                {
                    deck.Add(new Card(r,s));
                }
            }

        }

        public Card TakeRandomCard()
        {
            Random r = new Random();
            int cardNR=r.Next(deck.Count);
            Card c = deck[cardNR];
            deck.RemoveAt(cardNR);
            return c;
        }

        public int GetComboValue(List<Card> cards)
        {
            return 0;
        }
    }
}
